import Vue from 'vue'

import {
  Button,
  Tabbar,
  TabbarItem,
  Swipe,
  SwipeItem,
  Lazyload,
  Search,
  Icon,
  Grid,
  GridItem,
  NavBar,
  IndexBar,
  IndexAnchor,
  Cell,
  CellGroup,
  DropdownMenu,
  DropdownItem,
  Picker,
  Toast,
  Field,
  Popup,
  Overlay,
  List,
  Card,
  Tag,
  Sticky,
  Form,
  Image as VanImage,
  Empty
} from 'vant'

Vue.use(Button)
Vue.use(Tabbar)
Vue.use(TabbarItem)

Vue.use(Swipe)
Vue.use(SwipeItem)

Vue.use(Lazyload)

Vue.use(Lazyload, {
  lazyComponent: true
})

Vue.use(Search)

Vue.use(Icon)

Vue.use(Grid)
Vue.use(GridItem)

Vue.use(NavBar)

Vue.use(IndexBar)
Vue.use(IndexAnchor)

Vue.use(Cell)
Vue.use(CellGroup)

Vue.use(DropdownMenu)
Vue.use(DropdownItem)

Vue.use(Picker)

Vue.prototype.$toast = Toast

Vue.use(Field)
Vue.use(Popup)

Vue.use(Overlay)

Vue.use(List)

Vue.use(Card)

Vue.use(Tag)

Vue.use(Sticky)

Vue.use(Form)

Vue.use(VanImage)

Vue.use(Empty)
